import request from '@/utils/request'

// 查询店铺自动刊登配置列表
export function listSellerStoreEmpowerAutoPush(query) {
  return request({
    url: '/shop/seller/sellerStoreEmpowerAutoPush/list',
    method: 'get',
    params: query
  })
}

// 查询店铺自动刊登配置详细
export function getSellerStoreEmpowerAutoPush(id) {
  return request({
    url: '/shop/seller/sellerStoreEmpowerAutoPush/' + id,
    method: 'get'
  })
}

// 新增店铺自动刊登配置
export function addSellerStoreEmpowerAutoPush(data) {
  return request({
    url: '/shop/seller/sellerStoreEmpowerAutoPush',
    method: 'post',
    data: data
  })
}

// 修改店铺自动刊登配置
export function updateSellerStoreEmpowerAutoPush(data) {
  return request({
    url: '/shop/seller/sellerStoreEmpowerAutoPush',
    method: 'put',
    data: data
  })
}

// 删除店铺自动刊登配置
export function delSellerStoreEmpowerAutoPush(id) {
  return request({
    url: '/seller/sellerStoreEmpowerAutoPush/' + id,
    method: 'delete'
  })
}

// 根据店铺id获取类目选择列表
export function getCatrgoryListByStoreId(query) {
  return request({
    url: '/shop/seller/storeCategoryBrand/getCatrgoryListByStoreId',
    method: 'get',
    params: query
  })
}
